package com.xuef.repository;

import com.xuef.entity.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by moveb on 2018/5/23.
 */
@Repository
public interface CommentRepository extends JpaRepository<Comment, Integer> {
    List<Comment> findByEntityTypeAndEntityId(int entityType, int entityId);
}
